Test promise